import assessCheckApi from './api'
import { axios } from '@/utils/request'

export function getDictListByDictCode(data) {
  return axios({
    url: assessCheckApi.getDictListByDictCode,
    params:data,
    method: "GET",
    url_1:'outside'
  })
}
export function initHcyNdkp(params){
    return axios({
      url: assessCheckApi.initHcyNdkp,
      method:'get' ,
      params:{...params},
      url_1:'outside',
    })
  }

// 查询流程详情
export function queryJobByJobId(params){
    return axios({
      url: assessCheckApi.queryJobByJobId,
      method:'get' ,
      params:{...params},
      url_1:'outside',
    })
  }
  // 我的已办流程列表
export function flowMyYbJobPage(params){
  return axios({
    url: assessCheckApi.flowMyYbJobPage,
    method:'get' ,
    params:{...params},
    url_1:'outside',
  })
}

//删除办理意见
export function deleteBatchIdeaServe(params){
    return axios({
      url: assessCheckApi.deleteBatchIdea,
      method:'delete' ,
      params:{...params},
      url_1:'outside'
    })
  }

//办理意见
export function handlingOpinionsListServe(params){
    return axios({
      url: assessCheckApi.handlingOpinionsList,
      method:'get' ,
      params:{...params},
      url_1:'outside'
    })
  }
  //添加意见
  export function addBatchIdeaServe(params){
    return axios({
      url: assessCheckApi.addBatchIdea,
      method:'post' ,
      data:{...params},
      url_1:'outside'
    })
  }

  //保存
  export function saveFlow(data){
    return axios({
      url: assessCheckApi.saveFlow,
      method:'post' ,
      data:{...data},
      url_1:'outside'
    })
  }
  //提交
  export function submitFlow(data){
    return axios({
      url: assessCheckApi.submitFlow,
      method:'post' ,
      data:{...data},
      url_1:'outside'
    })
  }

  //退回

  export function returnUpperFlowJob(data){
    return axios({
      url: assessCheckApi.returnUpperFlowJob,
      method:'post' ,
      data:{...data},
      url_1:'outside'
    })
  }

  //批量提交

  export function batchSubmitFlow(data){
    return axios({
      url: assessCheckApi.batchSubmitFlow,
      method:'post' ,
      data:{...data},
      url_1:'outside'
    })
  }

  //批量删除

  export function deleteNdkpFlowJob(data){
    return axios({
      url: assessCheckApi.deleteNdkpFlowJob,
      method:'delete' ,
      params:{...data},
      url_1:'outside'
    })
  }

    //保存考评人员年度培训记录

    export function saveNpryNdPxjl(data){
      return axios({
        url: assessCheckApi.saveNpryNdPxjl,
        method:'post' ,
        data:{...data},
        url_1:'outside'
      })
    }

//获取年度培训记录列表
export function queryNdpxjlByNdkpId(params){
  return axios({
    url: assessCheckApi.queryNdpxjlByNdkpId,
    method:'get' ,
    params:{...params},
    url_1:'outside'
  })
}

//删除年度培训记录
export function deleteNdpxjl(params){
  return axios({
    url: assessCheckApi.deleteNdpxjl,
    method:'get' ,
    params:{...params},
    url_1:'outside'
  })
}

//验证年度培训时长(true: 大于60小时)
export function verifyNdpxsc(params){
  return axios({
    url: assessCheckApi.verifyNdpxsc,
    method:'get' ,
    params:{...params},
    url_1:'outside'
  })
}
